package cn.zhku.news.service;

import java.util.ArrayList;

import cn.zhku.news.dao.NewsDao;
import cn.zhku.news.domain.News;

public class NewsService {
	NewsDao newsDao = new NewsDao(); 
	/**
	 * 查找所有新闻
	 */
	public ArrayList<News> showAll() {
		return newsDao.findAll();
	}
		/**
		 	添加新闻
		 */
	public void add(News news) {
		newsDao.add(news);
		
	}
	
	public void edit(News news) {
		newsDao.edit(news);	
	}
	public void delete(News news) {
		newsDao.delete(news);	
		
	}




}
